package com.mec.web.y2012.ebookshop;

import java.util.ArrayList;
import java.util.Hashtable;

import org.apache.log4j.Logger;

public class DataManager {
	
	public String getCategoryName(int categoryId){
	
		return null;
	}
	
	public Hashtable<String, String> getCategories(){
		
		return null;
	}
	
	public ArrayList<String> getSearchResults(String keyword){
		
		return null;
	}
	
	public ArrayList<String> getBooksInCategory(String categoryId){
		
		return null;
	}
	
	public Book getBookDetails(int bookId){
		return null;
	}
	
	public Long insertOrder(String contactName, String deliveryAddress,
			String ccName, String ccNumber, String ccExpiryDate,
			Hashtable<String, String> shoppingCart){
		
		return null;
	}
	

	
	//

	public String getDbUrl() {
		return dbUrl;
	}

	public void setDbUrl(String dbUrl) {
		this.dbUrl = dbUrl;
	}

	public String getDbUserName() {
		return dbUserName;
	}

	public void setDbUserName(String dbUserName) {
		this.dbUserName = dbUserName;
	}

	public String getDbPassword() {
		return dbPassword;
	}

	public void setDbPassword(String dbPassword) {
		this.dbPassword = dbPassword;
	}


	private String dbUrl;
	private String dbUserName;
	private String dbPassword;
	
	public static final String PARAM_DB_URL="dbUrl";
	public static final String PARAM_DB_USER_NAME ="dbUserName";
	public static final String PARAM_DB_PASSWORD="dbPassword";
	public static final String PARAM_JDBC_DRIVER_NAME ="jdbcDriver";
	//
	private static final Logger logger =
		Logger.getLogger(DataManager.class);
}
